using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Budgetor
{
    public partial class SettingsForm : Form
    {
        public DateTime FromDate
        {
            get { return dateTimePickerFrom.Value; }
            set
            {
                try
                {
                    dateTimePickerFrom.Value = value;
                }
                catch (Exception)
                {
                }
            }
        }

        public DateTime ToDate
        {
            get { return dateTimePickerTo.Value; }
            set
            {
                try
                {
                    dateTimePickerTo.Value = value;
                }
                catch (Exception)
                {
                }
            }
        }

        public float Amount
        {
            get { return (float)numericUpDownAmount.Value; }
            set { numericUpDownAmount.Value = (decimal)value; }
        }

        public bool UseCurrentDate
        {
            get { return checkBoxCurrentDate.Checked; }
            set { checkBoxCurrentDate.Checked = value; }
        }

        public float ExchangeRate
        {
            get { return (float)numericUpDownExchangeRate.Value; }
            set { numericUpDownExchangeRate.Value = (decimal)value; }
        }

        public SettingsForm()
        {
            InitializeComponent();
        }
    }
}